home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
PKEY11_1.ARJ
/
ZQ.LSP
< prev
Wrap
Text File
|
1992-03-14
|
870b
|
21 lines
;A couple of handy quick zoom utilities
;
; ********Patrick J. McKee, author********
; ****Copyright 1992, Power Key tm****
;
(defun c:zq()
(setq vmx1 (getvar "VsMax")
vmn1 (getvar "VsMin")
fx (* (- (car vmx1) (car vmn1)) 0.0000000000001)
smll (/ (- (cadr vmx1) (cadr vmn1))
(- (fix (/ 32767 (apply 'max (getvar "screensize")))) 0.0000000000001)))
(command "zoom" "W" (mapcar '+ vmn1 (list fx fx))
(mapcar '- vmx1 (list fx fx))))
(defun c:zs()
(setq p1 (getpoint "\nPick center point of small window: ")
vmx1 (getvar "VsMax")
vmn1 (getvar "VsMin")
fx (* (- (car vmx1) (car vmn1)) 0.000000000001)
smll (/ (- (cadr vmx1) (cadr vmn1))
(- (fix (/ 32767 (apply 'max (getvar "screensize")))) 0.000000000001)))
(command"zoom""c" p1 smll))